package com.pingan.haofang.searchcloud.quartz.constants;

/**
 * @author EX-SUNBIXIAO001
 * @date 2018/8/16
 * @since 1.0.0
 */
public enum EnvEnum {

    dev(1, "dev"), st(2, "st"), anhouse(3, "anhouse"), ga(4, "ga");


    private EnvEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
    private Integer value;
    private String desc;

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static EnvEnum getValue(String desc){

        for(EnvEnum env:EnvEnum.values()){
            if(env.desc.equals(desc)){
                return env;
            }
        }
        return null;
    }


}
